package com.trip.wechat.platform.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;

/**
 * 功能说明: MP access_token <br>
 * 系统说明: <br>
 * 模块说明: <br>
 * 功能描述: <br>
 */
public class AccessTokenBO extends BaseResultBO {

    @JsonProperty("access_token")
    private String accessToken;
    @JsonProperty("expires_in")
    private Integer expiresIn;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("result", super.toString())
                .add("accessToken", accessToken)
                .add("expiresIn", expiresIn)
                .toString();
    }
}
